<?
		$link = "pages/trang-ca-nhan".$type;
		include("model/xl_nguoi_dung.php");
		include("model/xl_dia_diem.php");
		include("model/xl_dia_diem_yeu_thich.php");
		include("model/xl_dia_diem_chinh_sua.php");
		include("model/xl_binh_luan_dia_diem.php");
		include("model/xl_hinh_anh_dia_diem.php");
		
		$xl_nguoi_dung=new xl_nguoi_dung();
		$xl_dia_diem=new xl_dia_diem();
		$xl_dia_diem_yeu_thich=new xl_dia_diem_yeu_thich();
		$xl_binh_luan_dia_diem=new xl_binh_luan_dia_diem();
		$xl_hinh_anh_dia_diem=new xl_hinh_anh_dia_diem();
		$xl_dia_diem_chinh_sua=new xl_dia_diem_chinh_sua();
		
		// tab thông tin cá nhân
		$email=$_SESSION['email'];
		$user=$xl_nguoi_dung->layNguoiDungTheoEmail($email);
		$id_user=$user[0]['MaNguoiDung'];
		$tenhienthi=$user[0]['TenHienThi'];
		$hinhanh=$user[0]['HinhAnhDaiDien'];
		$ngaytao=$user[0]['NgayTao'];
		$ngaythamgia=explode(" ",$ngaytao);
		$arrngay=explode("-",$ngaythamgia[0]);
		
		
		// tab địa điểm đã tạo
		$arrDiaDiemDaTao=$xl_dia_diem->danhSachDiaDiemTheoMaNguoiDung_First($id_user);
		
		$sldiadiem=count($arrDiaDiemDaTao);
		$slbinhluan=$xl_binh_luan_dia_diem->tong_binh_luan_ca_nhan($id_user);
		
		// tab địa điểm yêu thích
		$arrDiaDiemYeuThich=$xl_dia_diem_yeu_thich->danhSachDiaDiemYeuThich_First($id_user);
		
		//tab địa điểm chỉnh sửa
		$arrDiaDiemChinhSua=$xl_dia_diem_chinh_sua->danhSachDiaDiemChinhSua_First($id_user);
		include $link;
		
?>